import request from '@/utils/request'

export function pageList(pageNum, pageSize, body) {
  return request({
    url: '/campus/student/list',
    method: 'get',
    params: {
      pageNum,
      pageSize,
      ...body
    }
  })
}

export function editList(method, data) {
  console.log(data)
  return request({
    url: '/campus/student',
    method,
    data
  })
}

export function deleteList(ids) {
  return request({
    url: '/campus/student/' + ids,
    method: 'delete'
  })
}

export function classList() {
  return request({
    url: '/campus/class/list',
    method: 'get'
  })
}
